<template>
  <view>
    <view class="wxs" v-for="(item, index) in testWxs.test(array)" :key="index">{{item}}</view>
  </view>
</template>

<script module="testWxs" lang="wxs">
  var test = function(array) {
    return array
  }

  module.exports.test = test
</script>

<script>
  export default {
    data() {
      return {
        array: ['a', 'b', 'c']
      }
    }
  }
</script>
